package com.zhuoyue.system.domain.po;

import com.zhuoyue.common.core.domain.BaseEntity;
import com.zhuoyue.system.domain.dto.HomePoReqDTO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Administrator
 */
@Data
public class TblHomePo extends BaseEntity {
    private Integer pageNum;
    private Integer pageSize;
    private String account;
    private String homeName;
    private String nickName;
    private String organizationCode;
    private Long deptId;


    /**
     * 请求的DTO转化为DO
     *
     * @param tblHomePo
     * @return
     */
    public TblHomePo dtoToDo(HomePoReqDTO tblHomePo) {
        BeanUtils.copyProperties(tblHomePo, this);
        return this;
    }
}
